import { axios } from '@/utils/request'

const urlList = {
    createPaper: '/paper/oesPaper/add',
    getPaperList: '/paper/oesPaper/list',
    getPaperById: '/paper/oesPaper'
}

export function createPaper(parameter) {
    return axios({
        url: urlList.createPaper,
        method: 'post',
        data: parameter
    })
}

export function getPaperList(parameter) {
  return axios({
      url: urlList.getPaperList,
      method: 'get',
      params: parameter
  })
}
export function getPaperById(id){
  return axios({
    url: urlList.getPaperById + '/' + id,
    method: 'get',
})
}